<template>
    <view>
        <!-- parse <template is="myEditTpl" :data="isLoad,formName,formNameFocus,formMobile,formMobileFocus,formCity,formCityFocus,formWork,formWorkFocus,formTrade,formTradeFocus"/> -->
        <block name="myEditTpl">
            <view v-if="isLoad === null" class="margin-top load notexist text-l load-project"></view>
            <view v-if="isLoad === false" class="margin-top load loading text-l load-project"></view>

            <view v-if="isLoad" class="main padding-project">
                <view class="form-box shadow-project">
                    <view class="form-group">
                        <view class="title">*姓名</view>
                        <input placeholder="填写您的姓名" placeholder-class="phc" v-model="formName" maxlength="20" />
                    </view>
                    <view v-if="formNameFocus" class="hint-desc error">{{ formNameFocus }}</view>

                    <view class="form-group">
                        <view class="title">*手机</view>
                        <input placeholder="填写您的手机号码" placeholder-class="phc" v-model="formMobile" maxlength="11" />
                        <!--<view class="mobile">{{formMobile||'未填写'}}</view>
				<button open-type="getPhoneNumber" bindgetphonenumber="bindGetPhoneNumber" class="btn bg-project light"><text wx:if="{{!formMobile}}">一键填写手机号</text><text wx:else>一键修改手机号</text></button>-->
                    </view>
                    <view v-if="formMobileFocus" class="hint-desc error">{{ formMobileFocus }}</view>

                    <view class="form-group">
                        <view class="title">所在城市</view>
                        <input placeholder="填写您的所在城市" placeholder-class="phc" v-model="formCity" maxlength="100" />
                    </view>
                    <view v-if="formCityFocus" class="hint-desc error">{{ formCityFocus }}</view>

                    <view class="form-group">
                        <view class="title">所在单位</view>
                        <input placeholder="填写您的所在单位" placeholder-class="phc" v-model="formWork" maxlength="100" />
                    </view>
                    <view v-if="formWorkFocus" class="hint-desc error">{{ formWorkFocus }}</view>

                    <view class="form-group">
                        <view class="title">行业领域</view>
                        <input placeholder="填写您的行业领域" placeholder-class="phc" v-model="formTrade" maxlength="100" />
                    </view>
                    <view v-if="fformTradeFocus" class="hint-desc error">{{ fformTradeFocus }}</view>
                </view>

                <button @tap="bindSubmitTap" class="btn-base btn-project">提交</button>
            </view>
        </block>
    </view>
</template>

<script>
let behavior = require('../../../../behavior/my_edit_bh.js');
let PassortBiz = require('../../../../biz/passport_biz.js');
let skin = require('../../skin/skin.js');
export default {
    data() {
        return {
            isLoad: '',
            formName: '',
            formNameFocus: [],
            formMobile: '',
            formMobileFocus: [],
            formCity: '',
            formCityFocus: [],
            formWork: '',
            formWorkFocus: [],
            formTrade: '',
            fformTradeFocus: []
        };
    },
    mixins: [behavior],
    onReady: function () {
        PassortBiz.initPage({
            skin,
            that: this
        });
    },
    methods: {
        bindSubmitTap() {
            console.log('占位：函数 bindSubmitTap 未声明');
        }
    }
};
</script>
<style>
@import './my_edit.css';
@import 'undefined';
</style>
